package com.suneast.suneaststore.modules.homepage.event;

import com.suneast.suneaststore.bean.homepage.StoreListBean;
import com.suneast.suneaststore.modules.common.Flag;

public class StoreListResult {
    private @Flag.Result
    final int value;
    private final StoreListBean bean;
    private final String msg;
    private final int type;
    private final int filter;

    public StoreListResult(@Flag.Result int value, int type, int filter, String msg) {
        this.value = value;
        this.type = type;
        this.filter = filter;
        this.bean = null;
        this.msg = msg;
    }

    public StoreListResult(@Flag.Result int value, int type, int filter, StoreListBean bean) {
        this.value = value;
        this.type = type;
        this.filter = filter;
        this.bean = bean;
        this.msg = null; // we dont care about it
    }

    public @Flag.Result
    int getValue() {
        return value;
    }

    public String getMsg() {
        return msg;
    }

    public StoreListBean getBean() {
        return bean;
    }

    public int getType() {
        return type;
    }

    public int getFilter() {
        return filter;
    }
}
